package com.banmoon.mediator;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public abstract class Mediator {

    List<AbstractLandlord> landlordList;

    public Mediator() {
        landlordList = new ArrayList<>();
    }

    public void register(AbstractLandlord landlord){
        this.landlordList.add(landlord);
    }

    abstract void getMessage(AbstractLandlord landlord, int type);

    abstract House findHouse(int floor, int distance, boolean balcony, int rent);
}
